[XEN] PTE updates do not need to use CMPXCHG instruction.
authorkfraser@dhcp93.uk.xensource.com <kfraser@dhcp93.uk.xensource.com>
Fri, 16 Jun 2006 14:22:03 +0000 (15:22 +0100)
committerkfraser@dhcp93.uk.xensource.com <kfraser@dhcp93.uk.xensource.com>
Fri, 16 Jun 2006 14:22:03 +0000 (15:22 +0100)
commit15dfe74a22b1ea0d53b1f1eb51bfd64d2a62df1a
treef0a7d38c2f7fd3f617d9cf98146761d6d2fbe253
parenta2ee238fcf52491bc2bf5b17d57491b488ec491e
[XEN] PTE updates do not need to use CMPXCHG instruction.
This is because the updates are already protected by a
per-domain lock. Using straightforward memory writes has
two advantages:
 1. Faster
 2. More correct (previously we could race accessed/dirty
    bit updates by other CPUs).
Signed-off-by: Keir Fraser <keir@xensource.com>
xen/arch/x86/mm.c